<script src="./equal.js"></script>
<script>
  var x = 42
  var y = 23
  // 1
  {
    var evaluated = `x=${x}`
    console.assert(evaluated === 'x=' + x, `1. 不成立`)
  }

  // 2
  {
    var evaluated = `${ x }+${y}` // '42+23'
    console.assert(evaluated === x + '+' + y, `2. 不成立`) // '42+23'
  }

  // 3
  {
    var evaluated = `${x + y}` *1// '65'
    console.assert(evaluated === x + y, `3. 不成立`) // 65
  }

  // 4
  {
    function getEnv() {
      return 'ECMAScript'
    }
    var evaluated = `${getEnv()}`
    console.assert(evaluated === 'ECMAScript', `4. 不成立`)
  }
</script>
